#include <iostream>
#include "Thread.hpp"
#include "MyMutex.hpp"


#define NUM 3;
using namespace MyThread;
using namespace MyMutexArea;

static MyMutex mt;


class threadData
{
public:
    int max;
    int start;
};



void Count(threadData td)
{
    for(size_t i = td.start;i<td.max;i++)
    {
        std::cout<<"i == "<<i<<std::endl;
        sleep(1);
    }
}



int main()
{

    threadData td;
    td.max = 60;
    td.start = 50;

    Thread<threadData> thread(Count,td);

    thread.Start();

    thread.Join();


    
    return 0;
}